package com.lc.settings;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;


public class ServiceBroadcastReceiver extends BroadcastReceiver {

    @Override
    public void onReceive(Context context, Intent intent) {
        Log.d("TAG", "onReceive() called with: context = [" + context + "], intent = [" + intent + "]");
        //开机启动
        Intent i = new Intent(Intent.ACTION_RUN);
        i.setClass(context, CheckService.class);
        i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
        context.startService(i);
    }

}
